import request from '@/utils/request'

// 查询健康证列表
export function listCertificate(query) {
  return request({
    url: '/health/certificate/list',
    method: 'get',
    params: query
  })
}

// 查询健康证详细
export function getCertificate(certId) {
  return request({
    url: '/health/certificate/' + certId,
    method: 'get'
  })
}

// 新增健康证
export function addCertificate(data) {
  return request({
    url: '/health/certificate',
    method: 'post',
    data: data
  })
}

// 修改健康证
export function updateCertificate(data) {
  return request({
    url: '/health/certificate',
    method: 'put',
    data: data
  })
}

// 删除健康证
export function delCertificate(certId) {
  return request({
    url: '/health/certificate/' + certId,
    method: 'delete'
  })
}
